<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(document).ready(function(){
		$("#loginMemberForm").submit(function(){
			if($(":input[name=id]").val()==""){
				alert("아이디를 입력바랍니다.");
				return false;
			}
			if($(":input[name=password]").val()==""){
				alert("비밀번호를 입력바랍니다.");
				return false;
			}
		});//submit
		$("#registerBtn").click(function(){
			location.href="registerMemberView.do";
		});
	});//ready
	function checkAutoLogin(){
		$("#autoLogin").val($('input[type=checkbox]:checked').val());
	}
</script>
<center>
<form id="loginMemberForm" method="post" action="loginMember.do">
<fieldset style="width:320px;">
<legend align="left"><h2>로그인</h2></legend>
<table cellpadding='10'>
	<tr>
		<td><input type="text" name="id" placeholder="아이디 입력" style="width:280px; height:30px;"></td>
	</tr>
	<tr>
		<td><input type="password" name="password" placeholder="비밀번호 입력" style="width:280px; height:30px;"></td>
	</tr>
	<tr>
		<td><input type="checkbox" name="autoLoginCheck" onclick="checkAutoLogin()">&nbsp;자동로그인
			<input type="hidden" id="autoLogin" name="autoLogin">
		</td>
	</tr>
	<tr><td><hr></td></tr>
	<tr>
		<td><input type="submit" value="로그인" style="width:280px; height:40px;"></td>
	</tr>
	<tr><td><hr></td></tr>
	<tr>
		<td><input type="button" id="registerBtn" value="회원가입" style="width:280px; height:40px;" ></td>
	</tr>
</table>
</fieldset>
</form>
</center>